Release 10.1A: OpenEdge Development:
Web Services
4GL procedure prototype to WSDL operation (Web service development)
This is the Progress procedure prototype for the sample
FindCustomerByNum.pexternal procedure:
For ProxyGen, the main information mapped from this prototype into the corresponding Web service operation definition is in bold, including the procedure name (filename for an external procedure) and for any parameters, the parameter mode (input or output), names, and data types.
Note: Some information can only be specified in ProxyGen, such as whether the 4GLRETURN-VALUEis used and (for external procedures) what Open Client object this operation belongs to.These are the
messagesection definitions in the RPC/Encoded and RPC/Literal WSDL file for theFindCustomerByNumoperation request and response messages:
Note that the request message contains the input parameter,
CustomerNumber, and the response message contains the output parameter,CustomerName, both defined by appropriate XML data types.This is the definition for the
FindCustomerByNumoperation in theportTypesection of the WSDL:
The
portTypesection defines the object in which the operation is defined, in this case, the AppObject,OrderInfo(as specified in ProxyGen). Note that this definition groups together the request (input) and response (output) messages, along with a generic fault message as part of the operation definition.This is the definition for the
FindCustomerByNumoperation in the Bindings section for the AppObject,OrderInfo:
Note that this definition specifies that the transport protocol as SOAP over HTTP, and goes on to define the content for SOAP messages request (input) and response (output) messages for the operation. This is where the object ID definitions are referenced for operations that require them.
This is the port definition in the
servicesection for the object (OrderInfoAppObject) containing theFindCustomerByNumoperation:
Note that the URL for the WSA instance is specified here for the location of the Web service.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |